const router = require('koa-router')()

const {uapp} =require('../model')

router.post('/uapp', async (ctx, next) => {
    const res = await uapp.find();
    console.log(res);
    if (res) {
      ctx.body = {
        code: 200,
        msg: '获取全部数据成功',
        data: res
      }
    }
  })

module.exports = router
